@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
@import './atomic-classes.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Inter", sans-serif !important;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: "Inter", sans-serif !important;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    width: 200px;
  }

  .el-button {
    margin-left: 0;
  }
}

.operator-container {
  padding-bottom: 10px;

  display: flex;
  justify-content: flex-end;
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

// #region ======================== ElementUI 自定义修改部分 =================
.el-table {
  .cell {
    font-size: 14px;
  }

  &__empty-text {
    display: block;
    height: 140px;
    padding-top: 300px;
    background: url("~@/assets/project/empty.png") no-repeat center;
    background-size: 300px;
    color: #909399;
    box-sizing: border-box;
  }

  // 解决表单列固定后下边框隐藏
  &__fixed {
    height: 100% !important; //设置高优先，以覆盖内联样式
  }

  &__fixed-right {
    height: 100% !important; //设置高优先，以覆盖内联样式
  }

  // 解决表格固定列问题
  &__fixed {
    height: calc(100% - 10px) !important;
  }

  &__fixed-right {
    height: calc(100% - 10px) !important;
  }

  &__fixed {
    &::before {
      z-index: -1;
    }
  }

  &__fixed-right::before {
    z-index: -1 !important;
  }
}

.el-dialog {
  top: 10%;
  border-radius: 15px;
  overflow: hidden;

  &__header {
    padding: 5px 0 0 25px !important;
    height: 50px;
    line-height: 50px;
    text-align: left;
    background: #f5f7fb;
  }

  &__title {
    font-weight: bold;
    color: #333333;
    font-size: 16px;
  }

  &__body {
    padding: 20px 50px 0 50px;
    border-bottom: 1px solid #d8dce6;
    margin-bottom: 10px;
  }

  &__close {
    display: none;
  }

  &__footer {
    padding-top: 0px;
    text-align: right;
  }
  .el-select {
    width: 100%;
  }
}

.el-form-item {
  &__label {
    font-weight: normal;
    color: #333;
  }
}

.el-button {
  border-radius: 6px;
}

// #endregion

// #region ======================= 浏览器原生样式修改 =======================
// 滚动条样式
::-webkit-scrollbar {
  width: 5px;
  height: 10px;
  background-color: #eee;
  border-radius: vw(10);

  &-thumb {
    border-radius: vw(10);
    background: #205cf5;
    -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  }

  &-thumb:window-inactive {
    background: #205cf5;
  }
}
// #endregion
